package com.think.teaching.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.think.teaching.model.TrainingResult;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author think
 * @since 2020-08-12
 */
public interface TrainingResultService extends IService<TrainingResult> {
	
	TrainingResult AddTrainingResult(TrainingResult result);

	TrainingResult UpdateTrainingResult(TrainingResult result);

	TrainingResult GetTrainingResult(Integer id);

	IPage<TrainingResult> ListTrainingResult(Integer page, Integer count, Boolean withoutBan);
	
	IPage<TrainingResult> ListTrainingResultWithUser(Integer userId,Integer page, Integer count, Boolean withoutBan);

	TrainingResult SetTrainingResultState(Integer id,Integer state);
	
}
